<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">商家所属名称:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="type" data-rule="required" class="form-control"  name="row[type]">
                {foreach name="type_arr" id="vo" }
                <option value="{$vo}">{$vo}</option>
                {/foreach}
                
            </select>
        </div>
    </div>
    <div class="form-group form-input form-input-title">
		<label class="control-label col-xs-12 col-sm-2">类目名称：</label>
		<div class="col-xs-12 col-sm-8" id="question_id" >
			<select  class="form-control selectpicker category"  data-live-search="true" name="row[category][]">
                <option value="" >请选择</option>
                {foreach name="category_list" item="vo"}
                <option value="{$vo.id}" >{$vo.name}</option>
                {/foreach}
            </select>
		</div>
	</div>
    <div class="form-group form-input form-input-title">
		<label class="control-label col-xs-12 col-sm-2">每日开启时间：</label>
		<div class="col-xs-12 col-sm-8">
			<input  data-rule="required" class="form-control form-control" placeholder="如设置早上8点开始则填8 ,如设置下午4点开始则填16" name="row[time]" type="text" value="">
		</div>
	</div>
    <div class="form-group form-input form-input-title">
		<label class="control-label col-xs-12 col-sm-2">自动上架数量：</label>
		<div class="col-xs-12 col-sm-8">
			<input  data-rule="required" class="form-control form-control" placeholder="自动上架数量" name="row[num]" type="text" value="">
		</div>
	</div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Yes'), '-1'=>__('No')])}
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
